package sockets_chat;

import java.io.IOException;
import java.net.Socket;
import java.net.UnknownHostException;
import java.util.HashMap;

public class Client {
	   public static void main(String[] args)  {
           
	        try {
	            //连接到本机的8888端口
	            Socket s = new Socket("127.0.0.1",8888);
	            // 启动发送消息线程
	            new SendThread(s).start();
	            // 启动接受消息线程
	            new RecieveThread(s).start();
	        } catch (UnknownHostException e) {
	            // TODO Auto-generated catch block
	            e.printStackTrace();
	        } catch (IOException e) {
	            // TODO Auto-generated catch block
	            e.printStackTrace();
	        }
	    }
	   HashMap a = new HashMap();
}
